pointer constant 예문
예문 더보기: 1 2
- The typed pointer constant nullptr has been introduced with C + + 11.
- C + + didn't adopt the same behavior, allowing only 0 as a null pointer constant.
- C + + 11 corrects this by introducing a new keyword to serve as a distinguished null pointer constant : nullptr.
- Since the dawn of C in 1972, the constant 0 has had the double role of constant integer and null pointer constant.
- In C + +, while the NULL macro was inherited from C, the integer literal for zero has been traditionally preferred to represent a null pointer constant.